<template>
  <div>
      <ul>
          <li v-for="i in list" :key="i.id"> {{i.name}} <router-link :to="{name:'info',query:{'id':i.id}}"> 参数配置 </router-link>  </li>
      </ul>
  </div>
</template>

<script>
import axios from 'axios'
export default {
    name:'workinfo',
    data(){
        return{
            list:[]
        }
    },
    methods:{
        getlist(){
            axios.get('/workflow').then(res=>{
                console.log(res);
                this.list = res.data.list
            })
        }
    },
    mounted(){
        this.getlist()
    }
}
</script>

<style>

</style>